package com.jml.mycicre;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class T1 {
    @Autowired
    private T2 t5;

    public T1() {
        System.out.println("T1初始化");
    }

    public void t1ToT2(){
        System.out.println("T1类的t1ToT2被调用");
        t5.t1ToT2();
    }

    public void t2Tot1(){
        System.out.println("T1类的t2Tot1被调用");
    }

}
